package com.lx.dao;

import com.lx.domain.userconsume;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserConsumeDao {
    @Select("SELECT uc.id, uc.traintimes, uc.paytimes, uc.payamount, u.username, u.teach, u.type, u.description FROM userconsume uc LEFT JOIN users u ON uc.id = u.id")
    List<userconsume> HotUsers();
}
